package com.tbit.main.controller;

import com.tbit.main.common.JsonResult;
import com.tbit.main.pojo.LinkConfigList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 电池配置二维码规则
 *
 * @author LMY
 * @create 2021-08-23 19:46
 */
@RestController
@RequestMapping("/linkConfig")
public class LinkConfigController {

    @Autowired
    private LinkConfigList linkConfigList;

    /**
     * 获取
     *
     * @return
     */
    @RequestMapping("/get")
    public JsonResult get() {
        return JsonResult.succ(linkConfigList.getHostList());
    }

}
